import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 导入ArticleItem组件
import ArticleItem from '@/components/ArticleItem'

// ------- 完整导入，导入后，可以随便使用Vant的组件 ---------
import Vant from 'vant'
import 'vant/lib/index.css'
import 'vant/lib/index.less' // 引入样式源文件
Vue.use(Vant)

// ------- 自动按需导入 --------------------------------
// import { Button, Swipe, SwipeItem } from 'vant'

// Vue.use(Swipe)
// Vue.use(SwipeItem)
// Vue.use(Button)

Vue.component('ArticleItem', ArticleItem)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
